package com.project.nimsen.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 文件信息表
 * */
@Entity
@Table(name="fileinfo")
public class Fileinfo implements Serializable {
	private static final long serialVersionUID = 9153750654862980639L;
	private String createUser;//创建用户
	private Date createTime;//创建时间
	private Integer active;//0表示正常，1表示删除
	private String id;
	private String filename;//文件名，即访问全路径
	private String srcname;//原文件名称
	private String autoname;//自动生成后的文件名称
	private String filetype;//文件类型
	private Integer unzip;//0为不解压，1为解压
	private String unzipname;//解压后名称
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	@Column(name = "createUser")
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	@Column(name = "createTime")
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "active")
	public Integer getActive() {
		return active;
	}
	public void setActive(Integer active) {
		this.active = active;
	}
	@Column(name = "filename")
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	@Column(name = "srcname")
	public String getSrcname() {
		return srcname;
	}
	public void setSrcname(String srcname) {
		this.srcname = srcname;
	}
	@Column(name = "autoname")
	public String getAutoname() {
		return autoname;
	}
	public void setAutoname(String autoname) {
		this.autoname = autoname;
	}
	@Column(name = "filetype")
	public String getFiletype() {
		return filetype;
	}
	public void setFiletype(String filetype) {
		this.filetype = filetype;
	}
	@Column(name = "unzip")
	public Integer getUnzip() {
		return unzip;
	}
	public void setUnzip(Integer unzip) {
		this.unzip = unzip;
	}
	@Column(name = "unzipname")
	public String getUnzipname() {
		return unzipname;
	}
	public void setUnzipname(String unzipname) {
		this.unzipname = unzipname;
	}
}
